package ldh.im.rpc.connection.handle;

import ldh.im.rpc.config.RpcConfig;
import ldh.im.rpc.dto.RpcData;

import java.util.Collection;

public interface RpcContext {

    static final String MESSAGE_SERVER_ID = "MESSAGE_SERVER_ID";
    static final String SEND_MESSAGES = "SEND_MESSAGES";
    static final String ASYN_HANDLE = "ASYN_HANDLE";

    static final String DATA = "DATA";

    RpcSession getSession();

    RpcConfig getRpcConfig();

    void put(String key, Object value);

    Object get(String key);

    Collection<Object> values();

    RpcData getRpcData();


}
